//
//  UIFont+TYPingFangSC.m
//  TYUIKit
//
//  Created by TuyaInc on 2019/1/16.
//

#import "UIFont+TYPingFangSC.h"

static NSString * const kTYPingFangSC_Regular = @"PingFangSC-Regular";
static NSString * const kTYPingFangSC_Semibold = @"PingFangSC-Semibold";
static NSString * const kTYPingFangSC_Thin = @"PingFangSC-Thin";
static NSString * const kTYPingFangSC_Light = @"PingFangSC-Light";
static NSString * const kTYPingFangSC_Medium = @"PingFangSC-Medium";
static NSString * const kTYPingFangSC_Ultralight = @"PingFangSC-Ultralight";

static CGFloat const kTYPingFangSCDefaultSize = 16;

@implementation UIFont (TYPingFangSC)

+ (UIFont *)ty_pingFangSCRegular:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Regular size:size > 0 ? size : kTYPingFangSCDefaultSize];
}
+ (UIFont *)ty_pingFangSCSemibold:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Semibold size:size > 0 ? size : kTYPingFangSCDefaultSize];
}
+ (UIFont *)ty_pingFangSCThin:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Thin size:size > 0 ? size : kTYPingFangSCDefaultSize];
}
+ (UIFont *)ty_pingFangSCLight:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Light size:size > 0 ? size : kTYPingFangSCDefaultSize];
}
+ (UIFont *)ty_pingFangSCMedium:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Medium size:size > 0 ? size : kTYPingFangSCDefaultSize];
}
+ (UIFont *)ty_pingFangSCUltralight:(CGFloat)size {
    return [UIFont fontWithName:kTYPingFangSC_Ultralight size:size > 0 ? size : kTYPingFangSCDefaultSize];
}

@end
